package com.caiheng.api.service.attendance;

import com.caiheng.api.entity.attendance.AttendanceGroupUser;
import com.caiheng.api.entity.wxuser.User;
import com.caiheng.api.service.base.BaseService;

import java.util.List;
import java.util.Map;

/**
 * 考勤组 成员Service接口
 *
 * @author ruoyi
 * @date 2022-12-06
 */
public interface AttendanceGroupUserService extends BaseService<AttendanceGroupUser> {

    /**
     *  获取当前默认的打卡考勤组
     * @param user
     * @return
     */
    AttendanceGroupUser getDefaultGroup(User user);

    /**
     *  根据用户id  获取考勤人员信息
     * @param userId
     * @return
     */
    AttendanceGroupUser getGroupByUserId(int userId, int groupId);


    /**
     *  根据用户id  获取考勤人员信息
     * @param sysUserId
     * @param groupId
     * @return
     */
    AttendanceGroupUser getGroupBySysUserId(long sysUserId, int groupId);


    /**
     *  修改默认考勤组
     * @param user
     * @param groupId
     * @return
     */
    int changeDefaultGroup(User user, int groupId);

    AttendanceGroupUser getCheckHolidayManager(int propertyId, User user);

    List<AttendanceGroupUser> selectAttendanceGroupUserList(Map<String,Object> map);
}
